<?php

namespace app\admin\model\clothmaking_boiler;

use think\Model;


class Boiler extends Model
{

    

    

    // 表名
    protected $name = 'clothmaking_boiler';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    public function raw()
    {
        return $this->belongsTo('\app\admin\model\clothmaking_raw\Index','raw_id')->setEagerlyType(1);
    }

    public function records()
    {
        return $this->hasMany("app\admin\model\clothmaking_boiler\Record",'boiler_id');
    }







}
